package router

import (
	"context"
	"github.com/gogf/gf/v2/net/ghttp"
	"server/internal/controller/lesson"
	"server/internal/middleware"
)

func V1(ctx context.Context, group *ghttp.RouterGroup) {
	g := group.Group("/lesson")
	g.Middleware(
		middleware.ResponseHandler,
		middleware.LessonAuthHandler,
	)
	g.Bind(
		lesson.NewUser(),
		lesson.NewArticle(),
		lesson.NewVoice(),
		lesson.NewFile(),
	)
}
